<?php
/**
 * Shopware 5
 * Copyright (c) shopware AG
 *
 * According to our dual licensing model, this program can be used either
 * under the terms of the GNU Affero General Public License, version 3,
 * or under a proprietary license.
 *
 * The texts of the GNU Affero General Public License with an additional
 * permission and of our proprietary license can be found at and
 * in the LICENSE file you have received along with this program.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * "Shopware" is a registered trademark of shopware AG.
 * The licensing of the program under the AGPLv3 does not imply a
 * trademark license. Therefore any rights, title and interest in
 * our trademarks remain entirely with us.
 */

/**
 * Order demo data
 */

return array(
    '_id' => 59,
    '_order' =>
        new ArrayObject(array(
            'id' => '59',
            'ordernumber' => '20003',
            'userID' => '3',
            'invoice_amount' => '56.84',
            'invoice_amount_net' => '47.76',
            'invoice_shipping' => '3.9',
            'invoice_shipping_net' => '3.28',
            'ordertime' => '2014-08-12 08:54:33',
            'status' => '0',
            'cleared' => '17',
            'paymentID' => '5',
            'transactionID' => '',
            'comment' => '',
            'customercomment' => '',
            'internalcomment' => '',
            'net' => '0',
            'taxfree' => '0',
            'partnerID' => '',
            'temporaryID' => '',
            'referer' => '',
            'cleareddate' => null,
            'trackingcode' => '',
            'language' => '2',
            'dispatchID' => '9',
            'currency' => 'EUR',
            'currencyFactor' => '1',
            'subshopID' => '1',
            'remote_addr' => '127.0.0.1',
            'deviceType' => 'desktop',
            'factor' => '1',
            'currencyID' => '1',
            'templatechar' => '&euro;',
            'currencyName' => 'Euro',
            'attributes' =>
                array(
                    'id' => '3',
                    'orderID' => '59',
                    'attribute1' => '',
                    'attribute2' => '',
                    'attribute3' => '',
                    'attribute4' => '',
                    'attribute5' => '',
                    'attribute6' => '',
                ),
        )),
    '_positions' =>
        new ArrayObject(array(
            0 =>
                array(
                    'id' => '209',
                    'orderID' => '59',
                    'ordernumber' => '20003',
                    'articleID' => '178',
                    'articleordernumber' => 'SW10178',
                    'price' => '19.95',
                    'quantity' => '1',
                    'name' => 'Strandtuch "Ibiza"',
                    'status' => '0',
                    'shipped' => '0',
                    'shippedgroup' => '0',
                    'releasedate' => '0000-00-00',
                    'modus' => '0',
                    'esdarticle' => '0',
                    'taxID' => '1',
                    'tax_rate' => '19',
                    'config' => '',
                    'articleTaxID' => '1',
                    'attr1' => '',
                    'attr2' => '',
                    'attr3' => '',
                    'attr4' => '',
                    'attr5' => '',
                    'attr6' => '',
                    'attr7' => '',
                    'attr8' => '',
                    'attr9' => '',
                    'attr10' => '',
                    'attr11' => '',
                    'attr12' => '',
                    'attr13' => '',
                    'attr14' => '',
                    'attr15' => '',
                    'attr16' => '',
                    'attr17' => null,
                    'attr18' => '',
                    'attr19' => '',
                    'attr20' => '',
                    'attributes' =>
                        array(
                            'id' => '9',
                            'detailID' => '209',
                            'attribute1' => '',
                            'attribute2' => '',
                            'attribute3' => '',
                            'attribute4' => '',
                            'attribute5' => '',
                            'attribute6' => '',
                        ),
                    'tax' => '19',
                    'netto' => 16.764705882352938,
                    'amount_netto' => 16.760000000000002,
                    'amount' => 19.949999999999999,
                ),
            1 =>
                array(
                    'id' => '210',
                    'orderID' => '59',
                    'ordernumber' => '20003',
                    'articleID' => '177',
                    'articleordernumber' => 'SW10177',
                    'price' => '34.99',
                    'quantity' => '1',
                    'name' => 'Strandtuch Stripes für Kinder',
                    'status' => '0',
                    'shipped' => '0',
                    'shippedgroup' => '0',
                    'releasedate' => '0000-00-00',
                    'modus' => '0',
                    'esdarticle' => '0',
                    'taxID' => '1',
                    'tax_rate' => '19',
                    'config' => '',
                    'articleTaxID' => '1',
                    'attr1' => '',
                    'attr2' => '',
                    'attr3' => '',
                    'attr4' => '',
                    'attr5' => '',
                    'attr6' => '',
                    'attr7' => '',
                    'attr8' => '',
                    'attr9' => '',
                    'attr10' => '',
                    'attr11' => '',
                    'attr12' => '',
                    'attr13' => '',
                    'attr14' => '',
                    'attr15' => '',
                    'attr16' => '',
                    'attr17' => null,
                    'attr18' => '',
                    'attr19' => '',
                    'attr20' => '',
                    'attributes' =>
                        array(
                            'id' => '10',
                            'detailID' => '210',
                            'attribute1' => '',
                            'attribute2' => '',
                            'attribute3' => '',
                            'attribute4' => '',
                            'attribute5' => '',
                            'attribute6' => '',
                        ),
                    'tax' => '19',
                    'netto' => 29.403361344537814,
                    'amount_netto' => 29.399999999999999,
                    'amount' => 34.990000000000002,
                ),
            2 =>
                array(
                    'id' => '211',
                    'orderID' => '59',
                    'ordernumber' => '20003',
                    'articleID' => '0',
                    'articleordernumber' => 'SHIPPINGDISCOUNT',
                    'price' => '-2',
                    'quantity' => '1',
                    'name' => 'Warenkorbrabatt',
                    'status' => '0',
                    'shipped' => '0',
                    'shippedgroup' => '0',
                    'releasedate' => '0000-00-00',
                    'modus' => '4',
                    'esdarticle' => '0',
                    'taxID' => '0',
                    'tax_rate' => '19',
                    'config' => '',
                    'articleTaxID' => null,
                    'attr1' => null,
                    'attr2' => null,
                    'attr3' => null,
                    'attr4' => null,
                    'attr5' => null,
                    'attr6' => null,
                    'attr7' => null,
                    'attr8' => null,
                    'attr9' => null,
                    'attr10' => null,
                    'attr11' => null,
                    'attr12' => null,
                    'attr13' => null,
                    'attr14' => null,
                    'attr15' => null,
                    'attr16' => null,
                    'attr17' => null,
                    'attr18' => null,
                    'attr19' => null,
                    'attr20' => null,
                    'attributes' =>
                        array(
                            'id' => '11',
                            'detailID' => '211',
                            'attribute1' => '',
                            'attribute2' => '',
                            'attribute3' => '',
                            'attribute4' => '',
                            'attribute5' => '',
                            'attribute6' => '',
                        ),
                    'tax' => '19',
                    'netto' => -1.680672268907563,
                    'amount_netto' => -1.6799999999999999,
                    'amount' => -2,
                ),
            3 =>
                array(
                    'quantity' => 1,
                    'netto' => 3.2773109243697482,
                    'tax' => 19,
                    'price' => '3.9',
                    'amount' => '3.9',
                    'modus' => 1,
                    'amount_netto' => 3.2773109243697482,
                    'articleordernumber' => '',
                    'name' => 'Versandkosten',
                ),
        )),
    '_userID' => '3',
    '_user' =>
        new ArrayObject(array(
            'id' => '3',
            'password' => '$2y$10$GAGAC6.1kMRvN4RRcLrYleDx.EfWhHcW./cmoOQg11sjFUY73SO.C',
            'encoder' => 'bcrypt',
            'email' => 'demo@shopware.com',
            'active' => '1',
            'accountmode' => '0',
            'confirmationkey' => '',
            'paymentID' => '5',
            'firstlogin' => '2014-08-12',
            'lastlogin' => '2014-08-12 08:54:50',
            'sessionID' => 'l7s18dvemmftmfeedh80f5c3d7',
            'newsletter' => '0',
            'validation' => '',
            'affiliate' => '0',
            'customergroup' => 'EK',
            'paymentpreset' => '0',
            'language' => '2',
            'subshopID' => '1',
            'referer' => '',
            'pricegroupID' => null,
            'internalcomment' => '',
            'failedlogins' => '0',
            'lockeduntil' => null,
            'customergroupID' => '1',
        )),
    '_billing' =>
        new ArrayObject(array(
            'id' => '3',
            'userID' => '3',
            'orderID' => '59',
            'company' => '',
            'department' => '',
            'salutation' => 'mr',
            'customernumber' => '20005',
            'firstname' => 'Muster',
            'lastname' => 'Kunde',
            'street' => 'Musterstraße 3',
            'zipcode' => '50000',
            'city' => 'Berlin',
            'phone' => '123456789',
            'fax' => '',
            'countryID' => '2',
            'stateID' => '0',
            'ustid' => '',
            'additional_address_line1' => '',
            'additional_address_line2' => '',
            'country' =>
                new ArrayObject(array(
                    'id' => '2',
                    'countryname' => 'Deutschland',
                    'countryiso' => 'DE',
                    'areaID' => '1',
                    'countryen' => 'GERMANY',
                    'position' => '1',
                    'notice' => '',
                    'shippingfree' => '0',
                    'taxfree' => '0',
                    'taxfree_ustid' => '0',
                    'taxfree_ustid_checked' => '0',
                    'active' => '1',
                    'iso3' => 'DEU',
                    'display_state_in_registration' => '0',
                    'force_state_in_registration' => '0',
                )),
            'state' =>
                array(
                ),
            'attributes' =>
                array(
                    'id' => '3',
                    'billingID' => '3',
                    'text1' => '',
                    'text2' => '',
                    'text3' => '',
                    'text4' => '',
                    'text5' => '',
                    'text6' => '',
                ),
        )),
    '_shipping' =>
        new ArrayObject(array(
            'id' => '3',
            'userID' => '3',
            'orderID' => '59',
            'company' => 'Muster Firma',
            'department' => 'Muster Abteilung',
            'salutation' => 'mr',
            'firstname' => 'Muster',
            'lastname' => 'Kunde',
            'street' => 'Musterweg 2',
            'zipcode' => '60000',
            'city' => 'Frankfurt',
            'countryID' => '2',
            'stateID' => '0',
            'additional_address_line1' => '',
            'additional_address_line2' => '',
            'attributes' =>
                array(
                    'id' => '3',
                    'shippingID' => '3',
                    'text1' => '',
                    'text2' => '',
                    'text3' => '',
                    'text4' => '',
                    'text5' => '',
                    'text6' => '',
                ),
            'country' =>
                new ArrayObject(array(
                    'id' => '2',
                    'countryname' => 'Deutschland',
                    'countryiso' => 'DE',
                    'areaID' => '1',
                    'countryen' => 'GERMANY',
                    'position' => '1',
                    'notice' => '',
                    'shippingfree' => '0',
                    'taxfree' => '0',
                    'taxfree_ustid' => '0',
                    'taxfree_ustid_checked' => '0',
                    'active' => '1',
                    'iso3' => 'DEU',
                    'display_state_in_registration' => '0',
                    'force_state_in_registration' => '0',
                )),
            'state' =>
                array(
                ),
        )),
    '_payment' =>
        new ArrayObject(array(
            'id' => '5',
            'name' => 'prepayment',
            'description' => 'Vorkasse',
            'template' => 'prepayment.tpl',
            'class' => 'prepayment.php',
            'table' => '',
            'hide' => '0',
            'additionaldescription' => 'Sie zahlen einfach vorab und erhalten die Ware bequem und günstig bei Zahlungseingang nach Hause geliefert.',
            'debit_percent' => '0',
            'surcharge' => '0',
            'surchargestring' => '',
            'position' => '1',
            'active' => '1',
            'esdactive' => '0',
            'embediframe' => '',
            'hideprospect' => '0',
            'action' => null,
            'pluginID' => null,
            'source' => null,
            'mobile_inactive' => '0',
        )),
    '_paymentInstances' =>
        new ArrayObject(array(
            0 =>
                array(
                    'id' => '1',
                    'payment_mean_id' => '5',
                    'order_id' => '59',
                    'user_id' => '3',
                    'firstname' => 'Muster',
                    'lastname' => 'Kunde',
                    'address' => 'Musterstraße 2',
                    'zipcode' => '50000',
                    'city' => 'Berlin',
                    'account_number' => null,
                    'account_holder' => null,
                    'bank_name' => null,
                    'bank_code' => null,
                    'bic' => null,
                    'iban' => null,
                    'amount' => '56.8400',
                    'created_at' => '2014-08-12',
                ),
        )),
    '_dispatch' =>
        new ArrayObject(array(
            'name' => 'Standard Versand',
            'description' => '',
        )),
    '_net' => false,
    '_summaryNet' => false,
    '_amountNetto' => 47.757310924369747,
    '_amount' => 56.839999999999996,
    '_tax' =>
        array(
            '19.00' => 9.0826890756302507,
        ),
    '_currency' =>
        new ArrayObject(array(
            'currency' => 'EUR',
            'name' => 'Euro',
            'factor' => '1',
            'char' => '&euro;',
        )),
    '_shippingCosts' => '3.9',
    '_shippingCostsAsPosition' => true,
    '_discount' => -2,
    '_taxRepository' => null,
);
